<title>套餐购买记录</title>
<div class="layui-fluid">
    <div class="layui-col-md12">
        <form class="layui-form layui-col-md11">
            <div class="layui-form-item">
                <div class="layui-input-inline">
                    <input name="searchName" placeholder="请输入名称" autocomplete="off" class="layui-input">
                </div>
                <div class="layui-input-inline">
                    <a class="layui-btn" lay-submit lay-filter="find">查询</a>
                </div>
                <div class="layui-input-inline">
                    <select name="searchType" id="searchType" lay-filter="searchType">
                        <option value="">全部</option>
                        <option value="1">短信</option>
                        <option value="2">订单</option>
                        <option value="5">组合</option>
                        <!--<option value="3">流量</option>-->
                    </select>
                </div>
            </div>
        </form>
    </div>
    <!--数据表格-->
    <div class="layui-col-md12">
        <table id="pageTable" lay-filter="pageTable" lay-data="{id: 'pageTable'}">
        </table>
    </div>
</div>
<!--添加/编辑签名-->
<script type="text/javascript">
    layui.use('setMeal/record', layui.factory('setMeal/record'));
</script>
<script type="text/html" id="operations">
    <!--<a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>-->
    <!--<a class="layui-btn layui-btn-xs layui-btn-danger" lay-event="del">删除</a>-->
</script>
<!--图片模板-->
<script type="text/html" id="imgTpl">
    <img class="layui-upload-img pic_url" style="width:40px; height:40px"
         src={{ d.combo_pic_url }}>
</script>
<!--状态码模板-->
<script type="text/html" id="statusTpl">
    {{#  if(d.status == '0'){ }}
    <span class="layui-col-md8">已创建</span>
    {{#  } else if(d.status == '1'){ }}
    <span class="layui-col-md8">成功</span>
    {{#  } else if(d.status == '2'){ }}
    <span class="layui-col-md8">失败</span>
    {{#  } else { }}
    <span class="layui-col-md8">类型错误</span>
    {{#  } }}
</script>

<style>
    /*列表展示图片时需要添加*/
    .layui-table-cell {
        height: auto;
    }

    #add_edit_form {
        margin-top: 20px;
        margin-right: 20px;
    }

    #image {
        height: 200px;
        width: 200px;
        margin-top: 10px;
        border: 1px solid #e5e5e5;
    }

    input[id=addImgPut] {
        border: 0px solid red;
        position: absolute;
        left: 0px;
        top: 0px;
        opacity: 0;
        height: 36px;
        width: 200px;
    }

    input[id=addImgPut] :hover {
        cursor: pointer;
    }
</style>
